<?php
/**
 * This file is part of the Wicked package.
 *
 * Copyright Aymeric Assier <aymeric.assier@gmail.com>
 *
 * For the full copyright and license information, please view the Licence.txt
 * file that was distributed with this source code.
 *
 * - - - - - - - - - - - - - -
 *
 * Bootstrat : DO NOT CHANGE ANYTHING !!
 *
 * @author Aymeric Assier <aymeric.assier@gmail.com>
 * @date 2012-10-05
 * @version 1.0
 */

/*
 * System constants, do not try to be a magician !
 */

/*
 * Call register and loader
 */
require 'core/Loader.php';
spl_autoload_register('Loader::load');

Loader::register('wicked', dirname(dirname(__FILE__)));
Loader::register('app', dirname(dirname($_SERVER['SCRIPT_FILENAME'])));

define('APP_URL', 'http://' . $_SERVER['HTTP_HOST'] . str_replace($_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']));



/*
 * Init
 */
session_start();


/*
 * Functions
 */
include 'tools/functions.php';